package pro1.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import pro1.model.CharacterModule;

public interface CharacterModuleMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(CharacterModule record);

	int insertSelective(CharacterModule record);

	CharacterModule selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(CharacterModule record);

	int updateByPrimaryKey(CharacterModule record);

	@Delete("delete from character_module where characterid=#{chaId}")
	int deleteByCharacterId(@Param("chaId") Integer chaId);
	
	@Delete("delete from character_module where moduleid=#{moduleId}")
	int deleteByModuleId(@Param("moduleId") Integer moduleId);
}